package com.ego.item.api;

import com.ego.item.pojo.Brand;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.CacheRequest;
import java.util.List;

@RequestMapping("brand")
public interface BrandApi {

    @GetMapping("/id")
    ResponseEntity<Brand> queryBrandById(@RequestParam("id") Long id);


    @GetMapping("list")
    ResponseEntity<List<Brand>> queryListByIds(@RequestParam("ids") List<Long> ids);

}
